home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Internet
/
Collection of Internet.iso
/
infosrvr
/
doc
/
www_talk.arc
/
000025_welch@parc.xerox.com _Fri Dec 6 18:56:17 1991.msg
< prev
next >
Wrap
Internet Message Format
|
1992-11-30
|
3KB
Return-Path: <welch@parc.xerox.com>
Received: from dxmint.cern.ch by nxoc01.cern.ch (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
id AA04914; Fri, 6 Dec 91 18:56:17 GMT+0100
Received: by dxmint.cern.ch (cernvax) (5.57/3.14)
id AA00186; Fri, 6 Dec 91 18:45:04 +0100
Received: from corvina.parc.xerox.com ([13.2.116.10]) by alpha.xerox.com with SMTP id <11798>; Fri, 6 Dec 1991 09:48:42 PST
Received: by corvina.parc.xerox.com id <36899>; Fri, 6 Dec 1991 09:46:21 -0800
Received: from Messages.7.14.N.CUILIB.3.45.SNAP.NOT.LINKED.corvina.parc.xerox.com.sun4.40
via MS.5.6.corvina.parc.xerox.com.sun4_40;
Fri, 6 Dec 1991 09:46:19 -0800 (PST)
Message-Id: <IdDvRfgB0bE_87aBRm@corvina.parc.xerox.com>
Date: Fri, 6 Dec 1991 09:46:19 PST
Sender: Brent Welch <welch@parc.xerox.com>
From: Brent Welch <welch@parc.xerox.com>
To: connolly@pixel.convex.com
Subject: Re: documents, files, types, and access methods
Cc: wais-talk@think.com, www-talk@nxoc01.cern.ch, tcl@allspice.berkeley.edu
In-Reply-To: <9112051816.AA29899@pixel.convex.com>
References: <9112051816.AA29899@pixel.convex.com>
The model that TCL has it that each tool has an embedded TCL
interpreter, and tools can issue commands to each other in the TCL
language. TCL is designed to be simple for simple things, and it is
fully programmable. TCL provides basic language features, and the
application that embeds an interpreter can define new commands, either
as C procedures or as TCL command procedures (scripts). For example,
the Tk X toolkit defines a number of TCL commands to create widgets, so
it is possible to write window programs with a script. Since each
window (ideally) has a TCL interpreter behind it, you can control your
tools by sending around TCL commands. This is a more powerful
alternative to using mail header formats for messages. You can send
whole programs, not just commands. The way I use this currently is to
couple a control panel with a shell window. The control panel is put
together as a TCL/Tk script that uses the Tk toolkit to display buttons,
etc. Clicking on buttons in the control panel can cause messages to be
sent to the terminal emulator (tx). One very useful command passes a
string along to the shell running in the terminal emulator. In this way
I can create buttons that run commonly used programs. Other commands
control the terminal emulator itself, such as its size and placement on
the screen, the message in its status line, etc. The whole model of a
bunch of tools that have a common language and can fire off commands to
each other is very powerful.
Brent Welch